'''
Created on 2020年3月2日

@author: Administrator
'''
from marshmallow import Schema, fields
    
class AppSchema(Schema):
    user_id =  fields.Integer()
    path =  fields.String()
    imgsrc = fields.String()
    text =  fields.String()
    group =  fields.String()

class UserPersonSchema(Schema):
    username = fields.String()
    password = fields.String()
    isactive = fields.String()
    sex = fields.String()
    birthday = fields.Date()
    address = fields.String()
    phone = fields.String()
    imgurl = fields.String()
    apps = fields.Nested(AppSchema,dump_to='app',many=True)


